<ul nz-menu [nzMode]="'inline'" nzTheme='dark' [nzInlineCollapsed]="isCollapsed">
  <ng-container *ngFor="let menuItem of menuList">
    <li *ngIf="!menuItem.subMenus" nz-menu-item class="menuItem">
      <a [routerLink]="menuItem.link" routerLinkActive="active">
        <span title>
          <span class="anticon">
            <i [ngClass]="menuItem.icon"></i>
          </span>
          <span>{{ menuItem.text }}</span>
        </span>
      </a>
    </li>


    <li *ngIf="menuItem.subMenus" nz-submenu class="menuItem">
      <span title>
        <span class="anticon">
          <i class="action" [ngClass]="menuItem.icon"></i>
        </span>
        <span>{{ menuItem.text }}</span>
      </span>
      <ul>
        <ng-container *ngFor="let subMenuItem of menuItem.subMenus">
          <li nz-menu-item style="padding-left:48px !important"><a [routerLink]="subMenuItem.link"
              routerLinkActive="active" style="padding-left: 48px;">{{ subMenuItem.text }}</a></li>
        </ng-container>
      </ul>
    </li>
  </ng-container>
</ul>





<!-- <ul nz-menu [nzMode]="'inline'" nzTheme='dark' [nzInlineCollapsed]="isCollapsed">
    <ng-container *ngFor="let menuItem of menuList">
      <li *ngIf="!menuItem.subMenus" nz-menu-item class="menuItem">
        <a [routerLink]="menuItem.link" routerLinkActive="active">
          <span title>
            <i [class]="menuItem.icon"></i>
            <span>{{ menuItem.text }}</span>
          </span>
        </a>
      </li>
  
      <li *ngIf="menuItem.subMenus" nz-submenu class="menuItem">
        <span title>
          <i [class]="menuItem.icon"></i>
          <span>{{ menuItem.text }}</span>
        </span>
        <ul>
          <ng-container *ngFor="let subMenuItem of menuItem.subMenus">
            <li nz-menu-item style="padding-left:48px !important"><a [routerLink]="subMenuItem.link"
                routerLinkActive="active" style="padding-left: 48px;">{{ subMenuItem.text }}</a></li>
          </ng-container>
        </ul>
      </li>
    </ng-container>
  </ul> -->
